package cosc617_blackteam;

/**
 * @author Laura
 * A state representing a seated customer party waiting for their 
 * food to be cooked
 */
public class StateWaitingForFood implements I_CustomerState {
	private CustomerParty customers;

	public StateWaitingForFood(CustomerParty customerParty) {
		this.customers = customerParty;
	}

	@Override
	public void assignToTable() {
		// Already assigned if waiting for food so does nothing
	}

	@Override
	public void deliverFood() {
		//transition to eating state if all food is cooked
		if (customers.allFoodIsReady()) {
			customers.setState(customers.getStateEating());
		}

	}

	@Override
	public void decrimentTimeToEat() {
		// does nothing if waiting for food

	}

	@Override
	public boolean unseatCustomer() {
		// is not ready to be unseated in this state
		return false;

	}

	@Override
	public boolean needsSeating() {
		return false;
	}

}
